package com.wsl.mybatiscustomframe.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * packageName com.wsl.mybatiscustomframe.pojo  Configuration
 *
 * @author victor
 * @version JDK 8
 * @date 2024/7/11
 * @description TODO
 */
public class Configuration {

    // 数据源对象
    private DataSource dataSource;
    /**
     * map : key :statementId value : 封装好的MappedStatement
     */
    private Map<String,MappedStatement> mappedStatementMap = new HashMap<>();


    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
